package com.oa.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.oa.dao.DeptMapper;
import com.oa.entity.Dept;
import com.oa.service.DeptService;
@Service
public class DeptServiceImpl implements DeptService {
	@Resource
	private DeptMapper deptMapper;
	@Override
	public Dept getDept(int deptno) {
		System.out.println("=======" + deptMapper);
		return deptMapper.getDept(deptno);
	}

	@Override
	public List<Dept> findAll() {
		return deptMapper.findAll();
	}

	@Override
	public int saveDept(Dept dept) {
		return deptMapper.saveDept(dept);
	}

	@Override
	public int updateDept(Dept dept) {
		return deptMapper.updateDept(dept);
	}

	@Override
	public int deleteDept(int deptno) {
		return deptMapper.deleteDept(deptno);
	}

}
